package com.pan.framework.tomcat.entity;

import javax.servlet.Servlet;

public class ServletInfo {
    String controlPath;
    String methodPath;
    String servletName;
    Servlet servlet;

    public ServletInfo() {
    }

    public ServletInfo(String controlPath, String methodPath, String servletName, Servlet servlet) {
        this.controlPath = controlPath;
        this.methodPath = methodPath;
        this.servletName = servletName;
        this.servlet = servlet;
    }

    public String getControlPath() {
        return controlPath;
    }

    public void setControlPath(String controlPath) {
        this.controlPath = controlPath;
    }

    public String getMethodPath() {
        return methodPath;
    }

    public void setMethodPath(String methodPath) {
        this.methodPath = methodPath;
    }

    public String getServletName() {
        return servletName;
    }

    public void setServletName(String servletName) {
        this.servletName = servletName;
    }

    public Servlet getServlet() {
        return servlet;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
    }

    @Override
    public String toString() {
        return "ServletInfo{" +
                "controlPath='" + controlPath + '\'' +
                ", methodPath='" + methodPath + '\'' +
                ", servletName='" + servletName + '\'' +
                ", servlet=" + servlet +
                '}';
    }
}
